Vcenter Vm Hardware Disk VmdkCreateSpec

Vcenter Vm Hardware Disk VmdkCreateSpec
Vcenter Vm Hardware Disk VmdkCreateSpec

The Vcenter Vm Hardware Disk VmdkCreateSpec schema provides a specification for creating a new VMDK file to be used as a backing for a virtual disk. The virtual disk will be stored in the same directory as the virtual machine's configuration file.

JSON Example
{
    "name": "string",
    "capacity": 0,
    "storage_policy": {
        "policy": "string"
    }
}
string
name
Optional

Base name of the VMDK file. The name should not include the '.vmdk' file extension.

If missing or null, a name (derived from the name of the virtual machine) will be chosen by the server.

integer As int64 As int64
capacity
Optional

Capacity of the virtual disk backing in bytes.

If missing or null, defaults to a guest-specific capacity.

storage_policy
Optional

The Vcenter Vm Hardware Disk StoragePolicySpec schema contains information about the storage policy that is to be associated the with VMDK file.

This property was added in vSphere API 6.7.

If missing or null the default storage policy of the target datastore (if applicable) is applied. Currently a default storage policy is only supported by object based datastores : VVol & vSAN. For non- object datastores, if missing or null then no storage policy would be associated with the VMDK file.